/*
 * Created by BAC IT Deustche Bank
 * User: Sergio Vasquez
 * Date: 5/11/2009
 * Time: 6:21 PM
 * 
 * Description:
 * 
 */
using System.Configuration;

namespace IScheduler.Core.Services
{
	/// <summary>
	/// Description of SettingServiceData.
	/// </summary>
	public class SettingServiceData : ConfigurationSection
	{
		/// <summary>
		/// Looks up a localized string similar to WindowsServiceName.
		/// </summary>
        [ConfigurationProperty("windowservicename")]
        public string WindowServiceName
        {
            get { return (string)this["windowservicename"]; }
            set { this["windowservicename"] = value; }
        }
        
		/// <summary>
		/// Looks up a localized string similar to WindowServiceDisplayName.
		/// </summary>        
        [ConfigurationProperty("windowservicedisplayname")]
        public string WindowServiceDisplayName
        {
            get { return (string)this["windowservicedisplayname"]; }
            set { this["windowservicedisplayname"] = value; }
        }        
        
		/// <summary>
		/// Looks up a localized string similar to WindowServiceDescription.
		/// </summary>        
        [ConfigurationProperty("windowservicedescription")]
        public string WindowServiceDescription
        {
            get { return (string)this["windowservicedescription"]; }
            set { this["windowservicedescription"] = value; }
        }        
        
		/// <summary>
        /// Looks up a localized string similar to WindowServiceLog.
		/// </summary>        
        [ConfigurationProperty("windowservicelog")]
        public string WindowServiceLog
        {
            get { return (string)this["windowservicelog"]; }
            set { this["windowservicelog"] = value; }
        }        

		/// <summary>
        /// Looks up a localized string similar to WindowServiceLog.
		/// </summary>        
        [ConfigurationProperty("monitortimerelapsed")]
        public double MonitorTimerElapsed
        {
            get 
            {
                try
                {
                    return (double)this["monitortimerelapsed"];
                }
                catch
                {
                    return 0;
                }
            }
            set { this["monitortimerelapsed"] = value; }
        }        

		/// <summary>
        /// Looks up a localized string similar to DatabaseDefault.
		/// </summary>        
        [ConfigurationProperty("databasedefault")]
        public string DatabaseDefault
        {
            get { return (string)this["databasedefault"]; }
            set { this["databasedefault"] = value; }
        }  



	}
}
